from langchain_community.chat_message_histories import ChatMessageHistory

chat_history = ChatMessageHistory()

chat_history.add_user_message("将这句话翻译成英文：我喜欢AI大模型。")

chat_history.add_ai_message("I like AI large models.")

# Output:
print(chat_history.messages)